
import java.util.*;
public class Sinhvien {
    private String MSSV;
    private String HoTen;
    private float DiemThi;

    public String getMSSV() {
        return MSSV;
    }

    public void setMSSV(String MSSV) {
        this.MSSV = MSSV;
    }

    public String getHoTen() {
        return HoTen;
    }

    public void setHoTen(String HoTen) {
        this.HoTen = HoTen;
    }

    public float getDiemThi() {
        return DiemThi;
    }

    public void setDiemThi(float DiemThi) {
        this.DiemThi = DiemThi;
    }
    public void NhapThongTin(){
        Scanner masv=new Scanner(System.in);
        System.out.println("Ma so sinh vien: ");
        String MSSV=masv.nextLine();
        setMSSV(MSSV);
        Scanner hten=new Scanner(System.in);
        System.out.println("Ho va ten SV   : ");
        String ht=hten.nextLine();
        setHoTen(ht);
        System.out.println("Diem thi cua SV: ");
        float dt=masv.nextFloat();
        setDiemThi(dt);
    }
    public void HienThi(){
        System.out.println("|   \t"+getMSSV()+"         \t | \t"+getHoTen()+"  |  \t"+getDiemThi()+"        |");
        System.out.println("|----------------------------------------------------------|");
    }
}
